﻿@using LeadMaster.Models
@model List<LeadMaster.Models.LeadResults>

<div class="spacer"></div>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Edit Lead Answers - Discretion Required</legend>
        @{
            var rowCounter = 0;
            foreach (LeadResults item in Model)
            {
		        @Html.HiddenFor(model => model[rowCounter].LeadResultsID)
                @Html.HiddenFor(model => model[rowCounter].CallCentreID)
                @Html.HiddenFor(model => model[rowCounter].LeadID)
                @Html.HiddenFor(model => model[rowCounter].LeadDate)
                <div class="editor-label">
                    <label>@item.Question</label>
                </div>
                    <div class='Editor-field'>
                    @Html.TextBoxFor(model => model[rowCounter].Answer, new { style = "width:700px;" })
                    @Html.ValidationMessageFor(model => model[rowCounter].Answer)                        
                    </div>
                @Html.HiddenFor(model => model[rowCounter].QuestionBlock)
                @Html.HiddenFor(model => model[rowCounter].BlockId)
                @Html.HiddenFor(model => model[rowCounter].LeadStatQuestionsID)
                @Html.HiddenFor(model => model[rowCounter].LeadGroupQuestionsID)
                @Html.HiddenFor(model => model[rowCounter].CompanyRegisteredID)
                @Html.HiddenFor(model => model[rowCounter].CompanyRestrictionsID)
                @Html.HiddenFor(model => model[rowCounter].CompanySundriesID)
                @Html.HiddenFor(model => model[rowCounter].DisplayOrder)
                <div class="spacer"></div>
                rowCounter++;
            }
        }
        <div class="spacer"></div>
        <div>
            <input type="submit" value="Save" />
        </div>
    </fieldset>
}

